

#ifndef __UART_H
#define __UART_H


#include "main.h"

#include "stm32f103_reg.h"

void uart_init(USART_TypeDef *pUart, unsigned char pclk2, unsigned int baud);


void my_putchar(USART_TypeDef *pUart, char data);
int my_getchar(USART_TypeDef *pUart);
void my_putstr(USART_TypeDef *pUart, const char *str);




#endif
